﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CartoGraphic
{
    public partial class Selector : Form
    {
        private string code, info, dimension,search;

        public string Dimension
        {
            get { return dimension; }
            set { dimension = value; }
        }

        public string Info
        {
            get { return info; }
            set { info = value; }
        }

        public string Code
        {
            get { return code; }
            set { code = value; }
        }

        public string Search
        {
            get { return search; }
        }


        public Selector()
        {
            InitializeComponent();
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            code = textBox1.Text.Trim();
            info = textBox2.Text.Trim();
            dimension = comboBox1.Text.Trim();
            search = "Dimension LIKE '%" + Dimension + "%'" + " and Info Like '%" + Info + "%'" + " and Code LIKE '%" + Code + "%'";
            this.Dispose();
        }
    }
}
